package com.ys.controller.api;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ys.entity.business.TpFbaPlanOrder;
import com.ys.service.sys.CommonApiService;
import com.ys.vo.LayuiTableVoJA;

@Controller
@RequestMapping("/api/inter/tpFbaPlanOrder")
public class ApiInterTpFbaPlanOrderController {
	
//	private static final Logger logger = Logger.getLogger(ApiAdminLoginController.class);
	
	@Autowired
	private CommonApiService<TpFbaPlanOrder> commonApiService;
//	@Autowired
//	private TpFbaPlanOrderService tpFbaPlanOrderService;

//	@RequiresPermissions("tpFbaPlanOrder:view")
	@RequestMapping("/search")
    @ResponseBody
	public LayuiTableVoJA search(Model model, HttpServletRequest request, HttpServletResponse response,
			@ModelAttribute TpFbaPlanOrder cond
			){
		
		
		return commonApiService.searchLay(cond);
	}
	
//	@RequestMapping("/dtree")
//    @ResponseBody
//	public DtreeSqlDto dtree(Model model, HttpServletRequest request, HttpServletResponse response
//			){
//		return tpFbaPlanOrderService.dtree();
//	}
	
//	/*
//	 * 彻底删除
//	 */
//	@PostMapping("/deleteTrue")
//	@ResponseBody
//	public R deleteTrue(HttpServletRequest request, HttpServletResponse response,
//			Long id) {
//		return tpFbaPlanOrderService.deleteTrue(id);
//	}
//	
//	/**
//	 * 新增
//	 */
//	@PostMapping("/add")
//    @ResponseBody
//	public R add(HttpServletRequest request, @RequestParam Map<String, Object> params){
//		return tpFbaPlanOrderService.add(params);
//	}
//	
//	/**
//	 * 修改
//	 */
//	@PostMapping("/edit")
//    @ResponseBody
//	public R edit(HttpServletRequest request, @RequestParam Map<String, Object> params){
//		return tpFbaPlanOrderService.edit(params);
//	}
	
}
